/**
 * 文件上传
 *
 * @param file {File}
 * @returns {Promise<{name: string, url: string}>}
 * @constructor
 */
export default function Base64Uploader(file) {
    return new Promise((resolve) => {
        Layers.convertFileToBase64(file).then(url => {
            resolve({name: file.name, url});
        })
    })
};